<template>
	<view class="shop page bgf6 p15">
		<view v-for="(item,index) in list" :key="index" @click="clickDetail(item)" class="flex flexC bgff r7 mb12 px10 py22">
			<image class="w82 r6" :src="item.logo" mode="aspectFill"></image>
			<view class="flex1 ml12">
				<view class="flex flexC flexB">
					<text class="bold6 ellipsis1">{{item.name}}</text>
					<text class="arrowR mr4"></text>
				</view>
				<view class="mb14 mt6">{{item.address}}</view>
				<view class="fs13">{{item.mobile}}</view>
			</view>
		</view>
		
		<tabbar></tabbar>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		
		onLoad() {
			this.getList();
		},
		methods:{
			
			getList(){
				let param = {
				
				};
				let that = this;
				this.$api.getAgentShopList(param).then(res => {
							
					console.info(JSON.stringify(res));
					if (res.code == 1) {
						that.list = res.data;
					} else {
							
					}
				})
			}
			
			
			
		}
	}
</script>

<style lang="scss" scoped>
.shop {
	.w82 {width: 164rpx;height: 164rpx;}
	.ellipsis1 {max-width: 400rpx;}
}
</style>
